package com.atguigu.test.po;

import org.springframework.stereotype.Service;

/**
 * @author zp
 * @version 1.0
 * @description: 使用注解的方式注入对象 如果不给value 默认是类名首字母小写
 * @date 2022/9/5 19:34
 */
@Service(value = "userService")
public class UserService {
    private String user="Tom";


    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "UserService{" +
                "user='" + user + '\'' +
                '}';
    }
}
